import datetime, random

def MotorEnrollDate(year=0):
    if year == 0:
        return datetime.date.today()
    else:
        id = str(random.randint(datetime.date.today().year - 10, datetime.date.today().year - 0))  # 年份项
        da = datetime.date.today() + datetime.timedelta(days=random.randint(1, 366))  # 月份和日期项
        return id + da.strftime('-%m-%d')

def CarShipTaxTaxRelief():
    return str(random.randint(1,100)) + "." + str(random.randint(1,100))


def dexprity(year=10):
    id = str(random.randint(datetime.date.today().year + 10, datetime.date.today().year + 10 + year))  # 年份项
    da = datetime.date.today() + datetime.timedelta(days=random.randint(1, 366))  # 月份和日期项
    return id + da.strftime('-%m-%d')

import string

class email_v1():
    def __init__(self):
        self.min=5
        self.max=10
        self.list=["@qq.com","@163.com","@126.com","@sina.com","@sogou.com"]

    def get_email(self):
        num = random.randint(self.min, self.max)
        str = string.ascii_uppercase + 2 * string.digits
        em = ''.join(random.sample(str, num))
        ail = random.choice(self.list)
        return  em + ail

def Email():
    e = email_v1()
    return e.get_email()

def Postcode():
    return random.randint(100000, 1000000)

if __name__ == '__main__':
    for x in range(0,1000):
        print(Postcode())